package com.example.roomtest

import android.util.Log
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
        var a = arrayListOf("fdsafsa","bbbb","cafd","add")
        a.sortBy { it[0] }
        println("从小到大$a")
        a.sortByDescending { it[0] }
        println("从大到小$a")
    }
}